(global.webpackJsonp = global.webpackJsonp || []).push([ [ "picture/detail" ], {
    "5e8d": function(e, t, n) {
        var i = n("ed33");
        n.n(i).a;
    },
    a1ca: function(e, t, n) {
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var i = n("14b2"), o = n("a71e"), a = n("b806"), r = (n("db8f"), function(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }(n("801c")));
            function u(e, t) {
                var n = Object.keys(e);
                if (Object.getOwnPropertySymbols) {
                    var i = Object.getOwnPropertySymbols(e);
                    t && (i = i.filter(function(t) {
                        return Object.getOwnPropertyDescriptor(e, t).enumerable;
                    })), n.push.apply(n, i);
                }
                return n;
            }
            function c(e, t, n) {
                return t in e ? Object.defineProperty(e, t, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = n, e;
            }
            var f = {
                data: function() {
                    return {
                        alpage: 1,
                        alList: [],
                        alInfo: {},
                        isRequest: !1,
                        albumId: 0,
                        loadText: "下拉加载更多",
                        isoneRequest: !1
                    };
                },
                computed: function(e) {
                    for (var t = 1; t < arguments.length; t++) {
                        var n = null != arguments[t] ? arguments[t] : {};
                        t % 2 ? u(Object(n), !0).forEach(function(t) {
                            c(e, t, n[t]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u(Object(n)).forEach(function(t) {
                            Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
                        });
                    }
                    return e;
                }({}, (0, n("26cb").mapGetters)([ "configs", "mainColor", "user" ])),
                onLoad: function(e) {
                    this.isoneRequest = !1, (0, o.isEmpty)(e.pid) || r.default.commit("config/SET_PID", e.pid), 
                    (0, o.isEmpty)(decodeURIComponent(e.scene).split("pid=")[1]) || r.default.commit("config/SET_PID", decodeURIComponent(e.scene).split("pid=")[1]), 
                    this.albumId = e.id;
                },
                onShow: function() {
                    var e = this;
                    (0, a.init)(e).then(function(t) {
                        e.alpage = 1, e.alList = [], e.getList();
                    });
                },
                onReachBottom: function() {
                    this.getMore();
                },
                onShareAppMessage: function(e) {
                    var t = (0, o.isEmpty)(this.user.id) ? 0 : this.user.id;
                    return e.from, {
                        title: "图片集详情",
                        path: "/picture/detail?id=" + this.albumId + "&pid=" + t
                    };
                },
                onShareTimeline: function() {
                    var e = (0, o.isEmpty)(this.user.id) ? 0 : this.user.id;
                    return {
                        title: "图片集详情",
                        query: "id=" + this.albumId + "&pid=" + e,
                        imageUrl: ""
                    };
                },
                methods: {
                    getList: function() {
                        var e = this;
                        e.loadText = "下拉加载更多", e.isRequest = !1;
                        var t = {
                            album_id: e.albumId,
                            page: e.alpage,
                            pagesize: 10
                        };
                        e.loadText = "加载中...", (0, i.albumInfo)(t).then(function(t) {
                            if (e.isRequest = !0, e.isoneRequest = !0, e.alInfo = t.info, t.list.length < 10 || t.total <= 10 ? e.loadText = "没有更多了" : e.loadText = "下拉加载更多", 
                            0 != t.list.length) {
                                var n = t.list, i = [], o = n[0].add_time;
                                for (var a in n) o != n[a].add_time ? (i[0].info || i.unshift({
                                    info: o
                                }), e.alList.push(i), i = [], o = n[a].add_time, i.push({
                                    info: o
                                }), i.push(n[a].img)) : (i.push(n[a].img), i[0].info || i.unshift({
                                    info: o
                                }));
                                e.alList.push(i), e.alList = e.mergeObject(e.alList);
                            }
                        });
                    },
                    getMore: function() {
                        this.alpage++, this.getList();
                    },
                    mergeObject: function(e) {
                        var t = [];
                        return e.forEach(function(e, n) {
                            0 == t.length ? t.push(e) : t.forEach(function(i, o) {
                                i[0].info != e[0].info ? t[n] = e : i[0].info == e[0].info && (e.splice(0, 1), t[n] = i.concat(e), 
                                t.splice(n - 1, 1));
                            });
                        }), t;
                    },
                    previewImage: function(t, n) {
                        var i = [];
                        for (var o in n) n[o].info || i.push(n[o]);
                        e.previewImage({
                            current: t - 1,
                            urls: i
                        });
                    }
                }
            };
            t.default = f;
        }).call(this, n("543d").default);
    },
    b61a: function(e, t, n) {
        n.r(t);
        var i = n("a1ca"), o = n.n(i);
        for (var a in i) "default" !== a && function(e) {
            n.d(t, e, function() {
                return i[e];
            });
        }(a);
        t.default = o.a;
    },
    b61aa: function(e, t, n) {
        (function(e) {
            n("1067"), i(n("66fd"));
            var t = i(n("ea91"));
            function i(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = n, e(t.default);
        }).call(this, n("543d").createPage);
    },
    ea91: function(e, t, n) {
        n.r(t);
        var i = n("fa53"), o = n("b61a");
        for (var a in o) "default" !== a && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(a);
        n("5e8d");
        var r = n("f0c5"), u = Object(r.a)(o.default, i.b, i.c, !1, null, null, null, !1, i.a, void 0);
        t.default = u.exports;
    },
    ed33: function(e, t, n) {},
    fa53: function(e, t, n) {
        n.d(t, "b", function() {
            return i;
        }), n.d(t, "c", function() {
            return o;
        }), n.d(t, "a", function() {});
        var i = function() {
            this.$createElement;
            this._self._c;
        }, o = [];
    }
}, [ [ "b61aa", "common/runtime", "common/vendor" ] ] ]);